#pragma once
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <iomanip>

using namespace std;
#include "Vehicle.h"
class Car :
	public Vehicle
{
protected:
	int seats;
	int doors;
public:

	Car()
	{
		seats = doors = -1;
	}

	Car(string brand, int year, double purchasingPrice, double sellingPrice, int seats, int doors)
		: Vehicle(brand, year, purchasingPrice, sellingPrice)
	{
		this->doors = doors;
		this->seats = seats;
	}

	~Car()
	{
	}

	void setSeats(int seats){ this->seats = seats; }
	void setDoors(int doors){ this->doors = doors; }
	int getSeats(){ return seats; }
	int getDoors(){ return doors; }

	virtual void print()
	{
		Vehicle::print();
		cout << ", Doors: " << doors << ", Seats: " << seats;
	}
};

